<template>
  <div class="cd">
    <div class="cd_product">
        <ul>
            <li>
                <router-link to="/flashbuy">
                    <div class="pto">
                        <img class="iii" :src="title" alt="">
                    </div>
                    <h3 >米家防蓝光护目镜 Pro 墨蓝色</h3>
                    <p>科学护眼 舒适防污</p>
                    <p>
                        <span>139元</span>
                        <del>149元</del>
                    </p>
                </router-link>
            </li>
        </ul>
    </div>
  </div>
</template>

<script>
export default {
    name:'fbProduct',
    props:['title','key'],
    methods:{
        x(){
            //console.log(this.title,this.key);
        }
    },
    mounted(){
        this.x();
    }
}
</script>

<style lang="less" scoped>
.cd_product {
    width: 240px;
    //   border-top: 1px solid #ffac13;
    margin: 15px auto;
    padding: 5px;
    
    ul {
    li {
        width: 234px;
        height: 300px;
        border-top: 1px solid #ffac13;
        text-align: center;
        -webkit-transition: all 0.6s;
        transition: all 0.6s;
        position: relative;
        list-style: none;
        a {
        display: block;
        height: 270px;
        padding-top: 39px;
        background: #fff;
        position: relative;
        &:hover{
            box-shadow: 0px 1px 1px 2px rgba(0, 0, 0, .5);
        }
        .pto{
            display: block;
            width: 160px;
            height: 160px;
            margin: 0 auto 22px;
        }
        h3 {
            margin: 0 20px 10px;
            font-size: 14px;
            font-weight: 400;
            text-overflow: ellipsis;
            color: #212121;
            overflow: hidden;
            white-space: nowrap;
        }
        p {
            height: 18px;
            margin: 0 20px 12px;
            font-size: 14px;
            text-overflow: ellipsis;
            color: #b0b0b0;
            overflow: hidden;
            white-space: nowrap;
            span {
            color: #ff6700;
            }
        }
        }
    }
    }
    }
</style>
<style scoped>
.pto >>>.iii{
    width:160px;
    height:160px;
}
</style>